const key = "userAddress"
export const getAddress = () => {

    try {
        return JSON.parse(uni.getStorageSync(key))
    } catch (error) {
        return {}
    }
}

export const setAddress = (address) => {
    uni.setStorageSync(key, JSON.stringify(address))
}

export const removeAddress = () => {
    uni.removeStorageSync(key)
}
